package com.ruoyi.machine.advanced.status.mapper;

import com.ruoyi.machine.advanced.status.domain.Status;
import com.ruoyi.machine.advanced.status.domain.StatusCond;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Timestamp;
import java.util.List;

/**
 * 设备状态信息表
 * 数据层
 */
@Mapper
public interface StatusMapper {
    /**
     * 查看设备状态
     * @param status
     * @return
     */
    public List<Status> selectStatusList(StatusCond status);

    /**
     * 根据Id查看设备状态
     * @param machineId
     * @return
     */
    public Status selectStatusById(String machineId );

    /**
     * 添加设备状态
     * @param status
     * @return
     */
    public int insertStatus(Status status);

    /**
     * 更新设备状态
     * @param status
     * @return
     */
    public int updateStatus(Status status);

    /**
     * 添加设备工作状态
     * @param status
     * @return
     */
    public int insertStatusList(Status status);
    public int selectStatusListYesterday() ;
    public int selectStatusListYesterday1();
    public int selectStatusListSevenDays();
    public int selectStatusListSevenDays1();
    public int selectStatusListThirtyDays();
    public int selectStatusListThirtyDays1();
    public int selectStatusListToday1();
    public int selectStatusListToday();
    public int selectStatusList30();
    public int selectStatusList3();
    public int selectStatusList40();
    public int selectStatusList4();
    public int selectStatusList50();
    public int selectStatusList5();
    public int selectStatusList60();
    public int selectStatusList6();
    public int selectStatusList70();
    public int selectStatusList7();

}
